<?php

use think\migration\Migrator;
use think\migration\db\Column;

class AlterCouponProductChannelAddType extends Migrator
{
    public function up()
    {
        $this->table('coupon_product_channel')
            ->addColumn('type', 'string', ['limit' => 30, 'default' => 'jutuike', 'comment' => '所属供应商'])
            ->update();

    }

    public function down()
    {
        $this->table('coupon_product_channel')->removeColumn('type');
    }
}
